package com.forum.user.service;

import com.forum.common.utils.R;
import com.forum.user.entity.ForumUser;
import com.forum.user.entity.ForumUserFollow;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author bncgnc
 * @since 2022-01-04
 */
public interface ForumUserFollowService extends IService<ForumUserFollow> {



    R findFollowUserByName(Long id,String nickName);

    R listAllFollowUser(Long id);

    /**
     * 关注用户
     * @param forumUser
     * @return
     */
    R addUserFollow(Long id,ForumUser forumUser);

    R removeUserFollow(Long id, ForumUser forumUser);
}
